package com.gwcm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gwcm.exception.BusinessException;
import com.gwcm.model.dto.alipay.AlipayPayNotify;
import com.gwcm.model.dto.orderInfo.CardOrderInfoQueryRequest;
import com.gwcm.model.entity.CardOrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gwcm.model.enums.PaymentTypeEnum;
import com.gwcm.model.vo.CardOrderInfoVo;

/**
* @author 15375
* @description 针对表【card_order_info(会员卡订单表)】的数据库操作Service
* @createDate 2023-03-21 16:19:38
*/
public interface CardOrderInfoService extends IService<CardOrderInfo> {

    IPage<CardOrderInfoVo> pageList(CardOrderInfoQueryRequest cardOrderInfoQueryRequest) throws BusinessException;

    Boolean checkAlipayPayNotify(AlipayPayNotify payNotify);

    CardOrderInfo getByOrderNo(String outTradeNo);

    void processAlipayPayNotify(AlipayPayNotify payNotify);



    void createOrder(Long cardId, Long userId, String orderNo, PaymentTypeEnum paymentTypeEnum);
}
